package cn.wei.youvieoj.service;

import cn.wei.youvieoj.model.dto.questionsubmit.QuestionSubmitAddRequest;
import cn.wei.youvieoj.model.dto.questionsubmit.QuestionSubmitQueryRequest;
import cn.wei.youvieoj.model.entity.QuestionSubmit;
import cn.wei.youvieoj.model.entity.User;
import cn.wei.youvieoj.model.vo.QuestionSubmitVO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author Youvie
* @description 针对表【question_submit(题目提交)】的数据库操作Service
* @createDate 2024-08-07 20:09:15
*/
public interface QuestionSubmitService extends IService<QuestionSubmit> {

    long doQuestionSubmit(QuestionSubmitAddRequest questionSubmitAddRequest, User loginUser);

    QueryWrapper<QuestionSubmit> getQueryWrapper(QuestionSubmitQueryRequest questionSubmitQueryRequest);

    Page<QuestionSubmitVO> getQuestionSubmitVOPage(Page<QuestionSubmit> questionSubmitPage, User loginUser);

    QuestionSubmitVO getQuestionSubmitVO(QuestionSubmit questionSubmit, User loginUser);
}
